

export default {
    data() {
        return {
            maxHeight: `600px`,
            loading: true
        };
    },
    created() {
        setTimeout(() => {

            const event = document.createEvent('HTMLEvents');

            event.initEvent('resize', true, true);

            event.eventType = 'message'
            window.dispatchEvent(event);

        }, 100)
        window.addEventListener('resize', this.windowResize)
    },
    beforeDestroy() {
        window.removeEventListener('resize', this.windowResize)
    },
    methods: {
        windowResize() {
            let val = document.body.clientHeight
            this.maxHeight = (val - 350) + 'px'
        },
        //table 自定义表头
        getRowClass({ rowIndex, columnIndex }) {
            if (rowIndex == 0) {
                return "background:#eee;font-weight: 400;color:#666;text-align:center";
            }
        },
    }
}

